class Animal:
    def get_name(self):
        print(self.__name)

    def set_name(self):
        self.__name = "hello"

my_dog = Animal()
my_dog.set_name()
my_dog.get_name()#hello